<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
  <h2>登录</h2>
  <form method="post" action="{% url 'login' %}">
     用户名 <input type="text" name="username" id="" placeholder="请输入用户名">
      <button>登录</button>
  </form>
</body>
</html>